package com.ftg.learn.chapter14.duoDuiduo;

import javax.security.auth.Subject;

public class MidClassStuSub {
    private int mno;
    private Students students;
    private KeCheng keCheng;


    @Override
    public String toString(){
        return "Id为:"+this.getMno()+";姓名:"+this.getStudents().getName()+";学习的课程:"+this.getKeCheng().getSname();
    }

    public MidClassStuSub(int mno, Students students, KeCheng keCheng) {
        this.mno = mno;
        this.students = students;
        this.keCheng = keCheng;
    }

    public int getMno() {

        return mno;
    }

    public void setMno(int mno) {

        this.mno = mno;
    }

    public Students getStudents() {

        return students;
    }

    public void setStudents(Students students) {

        this.students = students;
    }

    public KeCheng getKeCheng() {

        return keCheng;
    }

    public void setKeCheng(KeCheng keCheng) {

        this.keCheng = keCheng;
    }
}
